home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Tool Chest / Dev.CD May 97 TC.toast / Sample Code / Snippets / Development Tools & Languages / MouseInfo / About.h < prev    next >
Encoding:
Text File  |  1995-02-04  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1. //     About.h
  2. //     Copyright © 1992 by Apple Computer, Inc. All rights reserved.
  3. //    Kent Sandvik DTS
  4. //    This file contains the About box code including any adorners/behaviors
  5. //    The resources are placed in the project .r file
  6. //    Version Info (latest first):
  7. //
  8. //    <1>        khs        1.0        First final version
  9. //    <2>        khs        1.0.1    Fixed a memory leak in TMapApplication::GetSleepValue()
  10.  
  11.  
  12. #ifndef __ABOUT__
  13. #define __ABOUT__
  14.  
  15. #ifndef __MACAPP__
  16. #include <MacApp.h>
  17. #endif
  18.  
  19. #ifndef __RESOURCES__
  20. #include <Resources.h>
  21. #endif
  22.  
  23.  
  24. //    CONSTANTS
  25.  
  26. const unsigned short phAboutBox = 12000;        // our resource which resides in the .r file
  27. const ResType kVersInfoType = 'vers';            // for getting out the version info from the binary
  28. const ResNumber kVers1InfoID = 1;
  29. const IDType kBlueMetalLook = 'blmt';            // our AboutBox adorner ID
  30.  
  31.  
  32. //    FUNCTION PROTOTYPES
  33.  
  34. void CreateAboutBox();                            // the one and only function, place this inside the
  35. // TApplication->DoAboutBox(), and you are up and running!
  36.  
  37.  
  38. //    CLASSES
  39. //    Our adorner used inside the About Box resource
  40.  
  41. DeclareClassDesc(TMetalBlueFill);
  42.  
  43. class TMetalBlueFill : public TAdorner
  44. {
  45. DeclareClass(TMetalBlueFill);
  46. public:
  47.     TMetalBlueFill();
  48.     virtual      void Draw(TView* itsView,
  49.                              const VRect&        /*area*/);
  50. };
  51.  
  52.  
  53.  
  54. #endif
  55.  
  56.